package com.atguigu.gulimall.gulimallproduct.service;

import com.atguigu.gulimall.gulimallproduct.vo.AttrRelationVo;
import com.atguigu.gulimall.gulimallproduct.vo.AttrResponseVo;
import com.atguigu.gulimall.gulimallproduct.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.gulimallproduct.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhishi
 * @email zhishi@gmail.com
 * @date 2023-06-04 15:25:19
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attrVo);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateAttr(AttrResponseVo attrResponseVo);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void relationDelete(AttrRelationVo[] attrRelationVos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);
}

